package com.learn.mapper;

import com.learn.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description: 描述
 * @author: Mr.Hu
 * @create: 2022/3/15 16:58
 **/
@Mapper
public interface UserMapper {
    List<User> getUsers () ;
    User findUserById(int id);
    User queryByNAndP(@Param("userName") String name,@Param("password") String password);
    int insertUser(@Param("userName") String name,@Param("password") String password);
    Integer checkUser(String userName);
    String queryUserNameById(int userId);
}
